#coding=utf-8
from locust import HttpLocust,TaskSet,task

#定义用户行为
class UserBehavior(TaskSet):
    
    @task
    def baidu_search_key(self):
        self.client.get("/s?wd=selenium")
    	
    @task
    def baidu_page(self):
	    self.client.get("/")


class WebsiteUser(HttpLocust):
	task_set = UserBehavior
	min_wait = 1000
	max_wait = 2000